﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="Contato.aspx.cs" Inherits="MakeIT.MakeIT.Laundy.Agromotor.Site.Apresentacao.Contato" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="cphAreaUtil" runat="server">
    <asp:UpdatePanel ID="upnProduto" runat="server">
        <ContentTemplate>

    <asp:Panel ID="PanelContato" runat="server" Visible="true">
    <table border="0" cellpadding="0" cellspacing="0" width="100%" style="color:#404040; max-width:770px; padding: 0px 5px 5px 5px; background-color:White;">
        <tr>
            <td align="center">
            
    
        <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <!-- contato -->
                <td valign="top">
                    <table cellspacing="3" border="0" style="min-width:500px; border:solid 1px black;">
                        <tr>
                            <td valign="middle" style="font-size:large;">
                                <asp:Image ID="Image1" runat="server" ImageUrl="~/App_Themes/Padrao/Imagens/site/mail.ico"/><br />
                                Fale Conosco
                            </td>
                            <td colspan="2" align="center" style="font-family:Verdana; font-size:9pt;">
                                <b style="font-size:10pt;"><asp:Label ID="LabelEmpresa" runat="server" Text=""></asp:Label></b><br />
                                <asp:Label ID="LabelEmail" runat="server" Text=""></asp:Label><br />
                                <asp:Label ID="LabelEndereco1" runat="server" Text=""></asp:Label><br />
                                <asp:Label ID="LabelEndereco2" runat="server" Text=""></asp:Label><br />
                                <asp:Label ID="LabelFone" runat="server" Text=""></asp:Label><br />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <hr />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Nome:
                            </td>
                            <td colspan="2" align="left">
                                <asp:TextBox ID="TextBoxNome" runat="server"  MaxLength="50" Columns="44" ></asp:TextBox><b style="color:Red;">*</b>
                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="TextBoxNome" WatermarkText="Seu nome ou de sua empresa" WatermarkCssClass="waterMark">
                                </asp:TextBoxWatermarkExtender>
                                <asp:RequiredFieldValidator ControlToValidate="TextBoxNome" 
                                   ErrorMessage="Favor informar seu nome." ID="rfvTextBoxNome" Display="None"
                                   runat="server" ValidationGroup="salvar" ></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="rfvTextBoxNome"></asp:ValidatorCalloutExtender>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Email:
                            </td>
                            <td colspan="2" align="left">
                                <asp:TextBox ID="TextBoxMail" runat="server" MaxLength="50" Columns="44"></asp:TextBox><b style="color:Red;">*</b>
                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="TextBoxMail" WatermarkText="Informe o email para contato" WatermarkCssClass="waterMark">
                                </asp:TextBoxWatermarkExtender>
                                <asp:RequiredFieldValidator ControlToValidate="TextBoxMail" 
                                   ErrorMessage="Favor informar seu email." ID="rfvTextBoxMail" Display="None"
                                   runat="server" ValidationGroup="salvar" ></asp:RequiredFieldValidator>
                               <asp:RegularExpressionValidator id="regEmail" ControlToValidate="TextBoxMail"
                                    ErrorMessage="Email não informado corretamente."
                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                    Runat="server" Display="None" ValidationGroup="salvar"/> 
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" TargetControlID="rfvTextBoxMail"></asp:ValidatorCalloutExtender>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" TargetControlID="regEmail"></asp:ValidatorCalloutExtender>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Telefone:
                            </td>
                            <td colspan="2" align="left">
                                <asp:TextBox ID="TextBoxFone" runat="server" MaxLength="50" Columns="44"></asp:TextBox>
                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender3" runat="server" TargetControlID="TextBoxFone" WatermarkText="Telefone(s) para contato - Com DDD" WatermarkCssClass="waterMark">
                                </asp:TextBoxWatermarkExtender>
                                <asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server" 
                                    ClearTextOnInvalid="True" ErrorTooltipEnabled="true" AutoComplete="False"
                                    ClearMaskOnLostFocus="false" 
                                    InputDirection="LeftToRight" Mask="(99)9999-9999 \Cel(99)9999-9999 Fax(99)9999-9999" MaskType="None" 
                                    PromptCharacter="_" TargetControlID="TextBoxFone" >
                                </asp:MaskedEditExtender>
                                <%--<asp:RequiredFieldValidator ControlToValidate="TextBoxFone" 
                                   ErrorMessage="Favor informar ao menos um n&uacute;mero de telefone." ID="RequiredFieldValidator1" Display="None"
                                   runat="server" ValidationGroup="salvar" ></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" TargetControlID="RequiredFieldValidator1"></asp:ValidatorCalloutExtender>--%>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Endere&ccedil;o:
                            </td>
                            <td colspan="2" align="left">
                                <asp:TextBox ID="TextBoxEndereco" runat="server" MaxLength="50" Columns="44"></asp:TextBox>
                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender6" runat="server" TargetControlID="TextBoxEndereco" WatermarkText="Seu endere&ccedil;o" WatermarkCssClass="waterMark">
                                </asp:TextBoxWatermarkExtender>
                                <%--<asp:RequiredFieldValidator ControlToValidate="TextBoxEndereco" 
                                   ErrorMessage="Favor informar o seu endere&ccedil;o." ID="RequiredFieldValidator2" Display="None"
                                   runat="server" ValidationGroup="salvar" ></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server" TargetControlID="RequiredFieldValidator2"></asp:ValidatorCalloutExtender>--%>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Bairro:
                            </td>
                            <td colspan="2" align="left">
                                <asp:TextBox ID="TextBoxBairro" runat="server" MaxLength="50" Columns="44"></asp:TextBox>
                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender7" runat="server" TargetControlID="TextBoxBairro" WatermarkText="Seu bairro" WatermarkCssClass="waterMark">
                                </asp:TextBoxWatermarkExtender>
                               <%-- <asp:RequiredFieldValidator ControlToValidate="TextBoxBairro" 
                                   ErrorMessage="Favor informar o seu bairro." ID="RequiredFieldValidator6" Display="None"
                                   runat="server" ValidationGroup="salvar" ></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender9" runat="server" TargetControlID="RequiredFieldValidator6"></asp:ValidatorCalloutExtender>--%>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                CEP:
                            </td>
                            <td colspan="2" align="left">
                                <asp:TextBox ID="TextBoxCEP" runat="server" MaxLength="50" Columns="10"></asp:TextBox>
                                <asp:MaskedEditExtender ID="MaskedEditExtender2" runat="server" Mask="99999-999" ClearMaskOnLostFocus="true" TargetControlID="TextBoxCEP"/>
                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender8" runat="server" TargetControlID="TextBoxCEP" WatermarkText="CEP" WatermarkCssClass="waterMark">
                                </asp:TextBoxWatermarkExtender>
                             <%--   <asp:RequiredFieldValidator ControlToValidate="TextBoxCEP" 
                                   ErrorMessage="Favor informar o seu CEP." ID="RequiredFieldValidator7" Display="None"
                                   runat="server" ValidationGroup="salvar" ></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender10" runat="server" TargetControlID="RequiredFieldValidator7"></asp:ValidatorCalloutExtender>--%>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Assunto:
                            </td>
                            <td colspan="2" align="left">
                                <asp:TextBox ID="TextBoxAssunto" runat="server" MaxLength="200" Columns="44"></asp:TextBox>
                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender4" runat="server" TargetControlID="TextBoxAssunto" WatermarkText="Qual o motivo de seu contato?" WatermarkCssClass="waterMark">
                                </asp:TextBoxWatermarkExtender>
                               <%-- <asp:RequiredFieldValidator ControlToValidate="TextBoxAssunto" 
                                   ErrorMessage="Favor informar o assunto." ID="RequiredFieldValidator3" Display="None"
                                   runat="server" ValidationGroup="salvar" ></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender6" runat="server" TargetControlID="RequiredFieldValidator3"></asp:ValidatorCalloutExtender>--%>
                            </td>
                        </tr>
                        <tr valign="top">
                            <td align="right">
                                <asp:Label ID="Label1" runat="server" Text="Mensagem"></asp:Label>:
                            </td>
                            <td colspan="2" align="left">
                                <asp:TextBox ID="TextBoxMensagem" runat="server" Rows="5" Columns="44" MaxLength="250" 
                                    Height="100px"></asp:TextBox><b style="color:Red;">*</b>
                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender5" runat="server" TargetControlID="TextBoxMensagem" WatermarkText="Deixe aqui a sua mensagem" WatermarkCssClass="waterMark">
                                </asp:TextBoxWatermarkExtender>
                                <asp:RequiredFieldValidator ControlToValidate="TextBoxMensagem" 
                                   ErrorMessage="Favor escrever a mensagem." ID="RequiredFieldValidator4" Display="None"
                                   runat="server" ValidationGroup="salvar" ></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender7" runat="server" TargetControlID="RequiredFieldValidator4"></asp:ValidatorCalloutExtender>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Código de seguran&ccedila:<br />
                            </td>
                            <td align="left" valign="middle">
                                <asp:TextBox ID="TextBoxCaptcha" runat="server" Columns="7" MaxLength="5"></asp:TextBox><b style="color:Red;">*</b>
                                 <asp:RequiredFieldValidator ControlToValidate="TextBoxCaptcha" 
                                   ErrorMessage="Digite aqui o c&oacute;digo de seguran&ccedil;a." ID="RequiredFieldValidator5" Display="None"
                                   runat="server" ValidationGroup="salvar" ></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender8" runat="server" TargetControlID="RequiredFieldValidator5" PopupPosition="BottomLeft"></asp:ValidatorCalloutExtender>
                           </td>
                            <td align="left">
                                <asp:Image ID="Image2" runat="server" ImageUrl="~/getCaptcha.aspx"/>
                            </td>
                        </tr>
                         <tr>
                            <td colspan="3"  style="color:Red;">
                                <asp:Literal ID="LiteralMensagem" runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <hr />
                            </td>
                        </tr>
                       <tr>
                            <td>
                                <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/Default.aspx">Página Principal</asp:LinkButton>
                            </td>
                            <td colspan="2" align="right">
                                <asp:Button ID="ButtonEnviar" runat="server" Text="Enviar"  OnClick="ButtonEnviar_Click" ValidationGroup="salvar"/>&nbsp;&nbsp;&nbsp;
                                
                            </td>
                        </tr>
                    </table>
                
                </td>
            </tr>
        </table>
        
            </td>
        </tr>
    </table>

    </asp:Panel>

    <asp:Panel ID="PanelOK" runat="server" Visible="false">
                <div style="filter: alpha(opacity=50); opacity:.5; width:100%; height:100%;vertical-align:middle; text-align:center;">
                 <table cellpadding="0" cellspacing="0" width="100%" style="height:100%; margin:0 0 0 0;">
                    <tr>
                        <td style="vertical-align:middle; text-align:center;"><center>
                            <asp:Panel ID="Panel1" runat="server" Width="650" Height="300" BackColor="#3333CC">
                                <div style="width:650px; height:300px; vertical-align: middle; text-align:center; font-size:large; color:White;">
                                    <br />
                                    <br />
                                    Sua mensagem foi enviada com sucesso<br />
                                    Em breve responderemos ao seu contato<br />
                                    <br />
                                    Obrigado!<br />
                                    <br />
                                    <br />
                                    <asp:LinkButton ID="LinkButton2" runat="server" PostBackUrl="~/Default.aspx" ForeColor="White">Voltar para a P&aacute;gina Principal</asp:LinkButton>
                                </div>
                            </asp:Panel></center>
                            <asp:RoundedCornersExtender ID="RoundedCornersExtender2" runat="server" TargetControlID="Panel1" BorderColor="White" Radius="8">
                            </asp:RoundedCornersExtender>
                        </td>
                    </tr>
                </table>
              </div>
        
    </asp:Panel>

        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
